package main

import (
	"github.com/gofiber/fiber/v2"
	"log"
)

func main() {
	app := fiber.New()

	app.Get("/", func(c *fiber.Ctx) error {
		return c.SendString("hello!world")
	})

	app.Get("/json", func(c *fiber.Ctx) error {
		return c.JSON(map[string]string{
			"state":   "ok",
			"message": "test",
		})
	})

	log.Fatal(app.Listen(":8090"))
}
